<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>弹性布局</title>
		<style>
			#d1{
				border: 2px gold groove;
				display: flex;
				/* flex-direction: row-reverse; */
				/* flex-direction: column-reverse; */
				/* flex-direction: row;
				flex-wrap: wrap; */
				flex-flow: row wrap;
				justify-content: space-around;
			}
			#d1 div{
				height: 100px;
				width: 100px;
				margin: 4px;
				background-color: blue;
				color: white;
				font-size: 30px;
				line-height: 100px;
				text-align: center;
				
			}
			h3#adv{
				border: 1px red solid;
				 
				width: 240px;
				
				/* clear: both;后面的元素还是浮动，要和h3并列 */
			}
			 
		</style>
	</head>
	<body>
		<div id="d1">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
			<div>7</div>
			<div>18</div>
			<div>19</div>
			<div>29</div>
			<div>39</div>
			<div>59</div>
			<div>69</div>
			<div>79</div><div>99</div><div>969</div><div>992</div><div>889</div>
		</div>
		<h3 id="adv">许宝林是个好同志</h3>
		 
	</body>
</html>